import request from '@/utils/request'



export function addPurchaseReturn(data) {
    return request({
        url: '/purchaseReturn/addPurchaseReturn',
        method: 'post',
        data
    })
}

export function audit(data) {
    return request({
        url: '/purchaseReturn/audit',
        method: 'post',
        data
    })
}

export function deletePurchaseIncomingByID(data) {
    return request({
        url: '/purchaseIncoming/deletePurchaseIncomingByID',
        method: 'post',
        data
    })
}

export function getPurchaseReturn(data) {
    return request({
        url: '/purchaseReturn/getPurchaseReturn',
        method: 'get',
        params: data
    })
}

export function getPurchaseReturnByID(data) {
    return request({
        url: '/purchaseReturn/getPurchaseReturnByID',
        method: 'get',
        params: data
    })
}


export function generatePurchaseReturnOrderNumber(data) {
    return request({
        url: '/purchaseReturn/generatePurchaseReturnOrderNumber',
        method: 'get',
        params: data
    })
}
